package com.mk.graphql.service;

import com.mk.graphql.entity.Author;
import com.mk.graphql.repository.Repository;
import org.springframework.beans.factory.annotation.Autowired;

@org.springframework.stereotype.Service
public class Service {
    @Autowired
    private Repository repository;

    public Author getAuthor(Long id) {
        return repository.get(id);
    }
}
